package com.qifenqian.turbot.module.entity.response.order

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @author H
 * @createTime 2019/1/11 08:46
 * @description
 * @see
 * @since
 */
@Parcelize
data class OrderDetailEntity(
        var dishList: List<OrderDishDetail>,
        var totalMoney: Int,
        var discountMoney: Int,
        var balconyMoney: Int,
        var realMoney: Int,
        var orderTime: String
                            ) : Parcelable {

    @Parcelize
    data class OrderDishDetail(
            var name: String,
            var count: Int,
            var price: Int,
            var isChecked: Boolean = false) : Parcelable {

        override fun toString(): String {
            return "$name"
        }
    }
}